﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace tms.Migrations
{
    public partial class menu2 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "ComponentName",
                table: "TmsMenu");

            migrationBuilder.RenameColumn(
                name: "MenuLink",
                table: "TmsMenu",
                newName: "MenuRoute");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.RenameColumn(
                name: "MenuRoute",
                table: "TmsMenu",
                newName: "MenuLink");

            migrationBuilder.AddColumn<string>(
                name: "ComponentName",
                table: "TmsMenu",
                type: "nvarchar(50)",
                maxLength: 50,
                nullable: false,
                defaultValue: "");
        }
    }
}
